/**
 * Generate code from /{{projectName}}-core/src/main/java/{{packageName}}/{{apis}}/dto/{{apiDtos@DEFAULT}}.java.hbs
 */
package cn.ibizlab.api.dto;

import java.util.*;
import java.math.BigDecimal;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * AD[SysActiveDirectoryDTO]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("ADDTO")
public class SysActiveDirectoryDTO extends DTOBase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @JsonProperty("id")
    @JSONField(name = "id")
    @ApiModelProperty(value = "标识", position = 0)
    private String id;

    /**
     * 名称
     */
    @JsonProperty("name")
    @JSONField(name = "name")
    @ApiModelProperty(value = "名称", position = 1)
    private String name;

    /**
     * 类型
     */
    @JsonProperty("object_class")
    @JSONField(name = "object_class")
    @ApiModelProperty(value = "类型", position = 2)
    private String objectClass;

    /**
     * 上级标识
     */
    @JsonProperty("parent_id")
    @JSONField(name = "parent_id")
    @ApiModelProperty(value = "上级标识", position = 3)
    private String parentId;

    /**
     * DC
     */
    @JsonProperty("dc")
    @JSONField(name = "dc")
    @ApiModelProperty(value = "DC", position = 4)
    private String dc;

    /**
     * 描述
     */
    @JsonProperty("description")
    @JSONField(name = "description")
    @ApiModelProperty(value = "描述", position = 5)
    private String description;

    /**
     * 排序
     */
    @JsonProperty("sort")
    @JSONField(name = "sort")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "排序", position = 6)
    private Long sort;

    /**
     * Filter
     */
    @JsonProperty("filter")
    @JSONField(name = "filter")
    @ApiModelProperty(value = "Filter", position = 7)
    private String filter;

    /**
     * 组织机构标识
     */
    @JsonProperty("organization_id")
    @JSONField(name = "organization_id")
    @ApiModelProperty(value = "组织机构标识", position = 8)
    private String organizationId;

    /**
     * 部门标识
     */
    @JsonProperty("department_id")
    @JSONField(name = "department_id")
    @ApiModelProperty(value = "部门标识", position = 9)
    private String departmentId;

    /**
     * 禁止选择
     */
    @JsonProperty("disabled")
    @JSONField(name = "disabled")
    @ApiModelProperty(value = "禁止选择", position = 10)
    private BigDecimal disabled;


    /**
     * 设置 [名称]
     */
    public SysActiveDirectoryDTO setName(String name) {
        this.name = name;
        this.modify("name", name);
        return this;
    }

    /**
     * 设置 [类型]
     */
    public SysActiveDirectoryDTO setObjectClass(String objectClass) {
        this.objectClass = objectClass;
        this.modify("object_class", objectClass);
        return this;
    }

    /**
     * 设置 [上级标识]
     */
    public SysActiveDirectoryDTO setParentId(String parentId) {
        this.parentId = parentId;
        this.modify("parent_id", parentId);
        return this;
    }

    /**
     * 设置 [DC]
     */
    public SysActiveDirectoryDTO setDc(String dc) {
        this.dc = dc;
        this.modify("dc", dc);
        return this;
    }

    /**
     * 设置 [描述]
     */
    public SysActiveDirectoryDTO setDescription(String description) {
        this.description = description;
        this.modify("description", description);
        return this;
    }

    /**
     * 设置 [排序]
     */
    public SysActiveDirectoryDTO setSort(Long sort) {
        this.sort = sort;
        this.modify("sort", sort);
        return this;
    }

    /**
     * 设置 [Filter]
     */
    public SysActiveDirectoryDTO setFilter(String filter) {
        this.filter = filter;
        this.modify("filter", filter);
        return this;
    }

    /**
     * 设置 [组织机构标识]
     */
    public SysActiveDirectoryDTO setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
        this.modify("organization_id", organizationId);
        return this;
    }

    /**
     * 设置 [部门标识]
     */
    public SysActiveDirectoryDTO setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
        this.modify("department_id", departmentId);
        return this;
    }

    /**
     * 设置 [禁止选择]
     */
    public SysActiveDirectoryDTO setDisabled(BigDecimal disabled) {
        this.disabled = disabled;
        this.modify("disabled", disabled);
        return this;
    }


}
